package com.lbj.mvvm.helper

import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelProvider

class VMFactory : ViewModelProvider.Factory {
    // 使用newInstance反射实例ViewModel，并且传出去
    override fun <T : ViewModel?> create(modelClass: Class<T>): T = modelClass.newInstance()
}